package com.echat.commonlib.constant;

/**
 * Created by chenmohan on 2018/08/30
 *
 * @description
 */
public class ErrorCode {

    public static final Integer DEFAULT_PARAMETER_VALIDATE_FAILED = 1;
    public static final Integer DEFAULT_BUSSINESS_FAILED = 2;
    public static final Integer UNKNOW_EXCEPTION_IN_SERVER = 3;
    public static final Integer UNAUTHORIZED_ACCESS = 4;
    public static final Integer NOT_FOUND_404 = 5;
    public static final Integer NOT_LOGIN = 6;
    public static final Integer SERVER_ERROR = 7;

    public static final Integer IDENTITY_CHECK_FAILED = 10;
    public static final Integer INVAILD_ACCESS_KEY = 11;
    public static final Integer INVAILD_ACCESS_TOKEN = 12;
    public static final Integer INVAILD_REFRESH_TOKEN = 13;
    public static final Integer IP_LIMIT = 14;
    public static final Integer EXCEEDED_GET_TOKEN_LIMIT = 15;
    public static final Integer ACCOUNT_IS_UNABLE = 15;
    //10001
    public static class User {

        public static final Integer USERNAME_NOT_NULL = 1001;
    }


}
